package com.situ.onlinebookstore.back.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.situ.onlinebookstore.common.entity.Category;

import java.util.List;

public interface CategoryService {
    //添加
    int add(Category category) throws Exception;
    //修改
    int edit(Category category) throws Exception;
    //查询
    List search(Category category);
    //分页查询
    PageInfo searchByPage(Integer page,Integer limit,Category category);
}
